{*if $config->force_title != ""}
<div class="textmodule">
    <div class="textmodule_title">
        <h1>{$config->force_title}</h1>
        <div class="sep"></div>     
    </div>
</div>
{/if*}
{layout_title title=$config->force_title}


{foreach name=links from=$links item=link}
{math equation="x-1" x=$link->rank assign=prev}
{math equation="x+1" x=$link->rank assign=next}

{if ($smarty.foreach.links.index)%2 == 0}

{/if}

<h3><a title="{$link->name}" alt="{$link->name}" href="{link action=detail name=$link->seo_link}"{if $link->opennew == 1} target="_blank"{/if} >{$link->name}</a></h3>


<div class="lt_body">{trim_name_to_fix text=$link->description length=300}</div>
<div class="sep"></div>
{/foreach}  

<div align=center>
    {if $pages > 1}
    {paging current_page=$page pages=$pages action=list module=linklistmodule page_length=4 src=$__loc->src}
    {/if}
</div>

<div class="clear"></div>
{permissions level=$smarty.const.UILEVEL_NORMAL}
{if $permissions.create == 1}
<div class="actions" style="margin: 10px 0px 10px 15px; "> 
    <a class="add" href="{link action=manage}">{$_TR.manage_links}</a>
</div>    
{/if}
{/permissions}